package org.ww.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.ww.common.utils.PageUtils;
import org.ww.product.entity.BrandEntity;
import org.ww.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author ww
 * @email ww@qq.com
 * @date 2024-01-05 13:25:17
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveDetails(CategoryBrandRelationEntity categoryBrandRelation);

    /**
     * 更改分类名称
     * @param catId
     * @param name
     */
    void updateCategoryName(Long catId, String name);

    /**
     * 更新品牌名称
     * @param brandId
     * @param name
     */
    void updateBrandName(Long brandId, String name);

    /**
     * 根据分类id查询品牌列表
     * @param catId
     * @return
     */
    List<BrandEntity> getBrandListByCatId(Long catId);
}

